﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
using WPFExcelReport.Helpers;
using System.ComponentModel;

namespace WPFExcelReport
{
    public partial class TSHAB05
    { 
        public TSHAB05()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VABPOS();
            DataContext = MV;
            InitializeComponent();

        }
       

        public override void vwMaster_CurrentChanged(object sender, EventArgs e)
        {
            base.vwMaster_CurrentChanged(sender, e);
            if (app.company == "JLT")
            {
                if (dwMaster != null)
                {
                    MATART = "R" + dwMaster["ABPART"].ToString()
                        + dwMaster["ABPVAR"].ToString()
                        + dwMaster["ABPFARBE"].ToString() + dwMaster["ABPBESCHICH"].ToString()
                        + dwMaster["ABPDESS"].ToString() + dwData["ABPCOLORIT"].ToString();
                    AUF = "V" + KEY;
                }
                else
                {
                    MATART = "";

                }
            }
        }
        public override void LOADBYAUF()
        { 
            base.LOADBYAUF();
        } 
    }
}
